package com.zhenhunfan.hello.rpc.demo06;

import com.zhenhunfan.hello.rpc.common.IUserService;

import java.io.IOException;

/**
 * <p>Title: Client</p>
 * <p>Description: </p>
 *
 * @author zhenhunfan
 * @version 1.0.0
 * @date 2021/4/8
 */
public class Client {
    public static void main(String[] args) throws IOException {
        System.out.println("我是demo06 的client");
        IUserService service = (IUserService)Stub.getStub(IUserService.class);
        System.out.println(service.findUserById(123));
    }
}
